<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The mysqli_sql_exception class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli-warning.next.html">mysqli_warning::next</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.mysqli.html">别名和过时的Mysqli 函数</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.mysqli-sql-exception" class="reference">

 <h1 class="title">The mysqli_sql_exception class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5)</p>

  <div class="section" id="mysqli-sql-exception.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    The mysqli exception handling class.
   </p>
  </div>

  <div class="section" id="mysqli-sql-exception.synopsis">
   <h2 class="title">类摘要</h2>
   <div class="classsynopsis">
    <div class="ooclass"></div>
    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">mysqli_sql_exception</strong>
     </span>
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.runtimeexception.html" class="classname">RuntimeException</a>
     </span>
     {</div>
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.mysqli-sql-exception.html#mysqli-sql-exception.props.sqlstate">$<var class="varname">sqlstate</var></a></var>
    ;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.exception.html#exception.props.message">$<var class="varname">message</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">int</span>
      <var class="varname"><a href="class.exception.html#exception.props.code">$<var class="varname">code</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.exception.html#exception.props.file">$<var class="varname">file</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">int</span>
      <var class="varname"><a href="class.exception.html#exception.props.line">$<var class="varname">line</var></a></var>
    ;</div>


   }</div>
  </div>

  <div class="section" id="mysqli-sql-exception.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="mysqli-sql-exception.props.sqlstate"><var class="varname"><var class="varname">sqlstate</var></var></dt>

     <dd>

      <p class="para">
       The sql state with the error.
      </p>
     </dd>

    
   </dl>

  </div>

 </div>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli-warning.next.html">mysqli_warning::next</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.mysqli.html">别名和过时的Mysqli 函数</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
